﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Models;
using BLL;
namespace Player.ZhiBo
{
    public partial class WebForm1 : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                if (Request.QueryString["id"] != null)
                {
                    //查询指定游戏id的信息
                    int id = Convert.ToInt32(Request.QueryString["id"]);
                    List<Live> ls = BLL.LiveManage.SeleGmIdLive(id);
                    //绑定显示视频
                    this.rpttv.DataSource = ls;
                    this.rpttv.DataBind();
                }
                //用户信息展示
                if (Response.Cookies["Us_Id"].Value!=null)
                {
                    //List<Users> ls2 = BLL.UsersManage.SeleIdUsers(Convert.ToInt32(Response.Cookies["Us_Id"].Value));
                    //this.img_tx.ImageUrl=
                }
            }
        }
    }
}